package com.sakura.taos.tool.manipulator.model.layui;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * lay 的返回类型对象--消息类型
 *
 * @author 小坤坤
 * @date 2020/7/10 17:02
 */
@Data
@NoArgsConstructor                 //无参构造
@ApiModel(value="lay的特殊数据返回",description="Object类型的任意数据返回")
public class LayReturnToTidings extends LayReturn  {


   public LayReturnToTidings(Integer code ,String msg){
       super(code,msg);
    }
    /**
     * 返回的数据
     */
    @ApiModelProperty(value="任意数据类型",example="mapOrList")
    private Object data;

    public LayReturnToTidings( Object data){
        super(0,"成功(默认)");
        this.data=data;
    }
}
